<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数字猜猜猜</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <h1>数字猜猜猜</h1>
        <p class="game-description">我已经想好了一个1到100之间的数字，你能猜出来吗？</p>
        
        <div class="game-area">
            <input type="number" id="guess-input" min="1" max="100" placeholder="输入你的猜测 (1-100)">
            <button id="guess-button">猜一猜</button>
            <button id="restart-button" style="display: none;">重新开始</button>
        </div>
        
        <div class="message-area">
            <p id="message">开始游戏吧！你有10次机会。</p>
            <p id="history"></p>
        </div>
        
        <div class="stats">
            <p>剩余次数: <span id="attempts">10</span></p>
        </div>
    </div>
    
    <script src="script.js"></script>
</body>
</html>